<%--
  Created by IntelliJ IDEA.
  User: lsj
  Date: 2025/10/31
  Time: 02:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page pageEncoding="UTF-8" %>
<html>
<head>
  <title>员工管理系统 - 首页</title>
  <style>
    body { font-family: Arial, sans-serif; margin: 20px; }
    .header { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #ccc; }
    .welcome { font-size: 18px; }
    .btn { padding: 8px 15px; background: #007bff; color: white; text-decoration: none; border-radius: 3px; }
    .btn-danger { background: #dc3545; }
    .dashboard { margin-top: 30px; text-align: center; }
    .menu { margin: 20px 0; }
  </style>
</head>
<body>
<div class="header">
  <h1>员工管理系统</h1>
  <div>
    <span class="welcome">欢迎, ${user.username}</span>
    <a href="logout" class="btn btn-danger" style="margin-left: 15px;">退出登录</a>
  </div>
</div>

<div class="dashboard">
  <h2>系统首页</h2>
  <div class="menu">
    <a href="employees" class="btn">员工管理</a>
  </div>
  <p>请使用左侧菜单进行系统操作</p>
</div>
</body>
</html>
